package com.demo.dao.uiv.mapper;

import com.demo.dao.uiv.entity.UivComponentItem;
import com.demo.dao.uiv.entity.UivComponentNode;
import com.demo.dao.uiv.entity.UivComponentPropsItem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UivModComponentNodeMapper {
    //依据页面读取组件
    public List<UivComponentNode> getComponentNodeByPageId(Long pageId);

    //插入节点
    public int insertComponentNode(UivComponentItem item);
    public int insertComponentPropsNode(UivComponentPropsItem item);


    //修改节点
    public int updateComponentNode(UivComponentItem item);
    public int updateComponentPropsNode(UivComponentPropsItem item);


    //删除节点
    public int removeComponentNodeById(Long id);
    public int removeComponentPropsNodeByComId(Long comId);
}
